//parent//
base
//current_menu_item//
products
//content//
<?php
require_once 'helpers/url_helper.php'
?>
<form action="<?=get_url('products','add',array())?>" method="post">
<table>
	<tr>
	<th>Name</th>
	<th>Code</th>
	<th>Category</th>
	<th>Small description</th>
	<th>Full description</th>
	</tr>
<?php foreach($products as $p) { ?>
	<tr>
		<td><?=$p['name']?></td>
		<td><?=$p['code']?></td>
		<td><?=$p['category_id']?></td>
		<td><?=$p['small_desc']?></td>
		<td><?=$p['full_desc']?></td>
	</tr>
<?php } ?>
	<tr>
		<input type="hidden" name="path" value="products"/>
		<input type="hidden" name="method" value="add"/>
		<td><input type="text" name="name"/></td>
		<td><input type="text" name="code"/></td>
		<td><input type="text" name="category_id"/></td>
		<td><input type="text" name="small_desc"/></td>
		<td><input type="text" name="full_desc"/></td>
		<td><input type="submit"/></td>
	</tr>
</table>
</form>
